to bind or accept, cast the pointer, to avoid warnings on systems
which declare prototypes for this.
unlink (server.sun_path);
#endif
- if (bind (s, &server, strlen (server.sun_path) + 2) < 0)
+ if (bind (s, (struct sockaddr *) &server, strlen (server.sun_path) + 2) < 0)
{
perror ("bind");
exit (1);
{
fromlen = sizeof (fromunix);
fromunix.sun_family = AF_UNIX;
- infd = accept (s, &fromunix, &fromlen); /* open socket fd */
+ infd = accept (s, (struct sockaddr *) &fromunix, &fromlen); /* open socket fd */
if (infd < 0)
{
if (errno == EMFILE || errno == ENFILE)